Part Number Hot Search : 
BD144 N1204 SP10Q010 NTE6359 1990329 SNC10805 SP10Q010 D8748H
Product Description
Full Text Search
 

To Download AN1367 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  AN1367/0502 1/8 AN1367 application note st92141 ac motor control software library version 2.1 update by vincent onde / microcontroller division applications and loic chossat / motor control competence center this application note provides information on release 2.1.1 of the st92141 ac motor control firmware. the corresponding software package is available on internet at: http://www.st.com/stonline/products/support/mcu8/mc/st92141.htm#soft. 1 what's new in st92141 software library v2.1 compared to v2.0 n the sine-wave generation routines have been enhanced to allow sinusoidal pwm with third harmonic injection. this optimizes the dc bus voltage use, allowing to get-up to 15% more voltage on motor windings without current distorsion. n the v2.1 library can now be compiled using v6.x software toolchain. 2 fixed bugs and enhancements n the imc_inittachomeasure function has been enhanced: it can now be called anywhere in the user program: the previously missing spp() instruction has been added before the imc hardware register accesses. n the acm_update_sine_tables function has been modified: frequency limitation at high speed is now functional. n default parameters for voltage vs frequency and slip vs frequency curves have been updated. n interrupt service routine prototypes have been added in corresponding.c files (warning messages generated otherwise). n cleaner c coding of several functions by appropriate casting of variables. 1
2/8 table of contents 8 1 what's new in st92141 software library v2.1 compared to v2.0 1 2 fixed bugs and enhancements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 3 sinusoidal pwm with third harmonic injection . . . . . . . . . . . . . . . 3 3.1 principle of operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 3.2 implementing third harmonic injection . . . . . . . . . . . . . . . . . . 5 4 library migration and related issues . . . . . . . . . . . . . . . . . . . . . . . 6 4.1 c files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 4.2 tr9 and assembly files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 4.3 linker scriptfile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 4.4 start-up files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 4.5 makefile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 2
3/8 st92141 ac motor control software library version 2.1 update 3 sinusoidal pwm with third harmonic injection 3.1 principle of operation in the previous releases of the ac motor control software libraries, the reference pwm mod- ulating signal was a pure sinewave (figure 1. left). this kind of modulation has the drawback that it makes poor usage of the dc bus voltage. lets consider vbus as the bus voltage after mains rectification. one can easily find that max- imum available voltage on a motor using a standard three-phase power inverter is around 86% of vbus. adding a third harmonic modulation to the previous reference sinewave decreases the overall amplitude of the resulting pwm modulation (pwm duty cycle never reaches either 0% or 100%, figure 1. right). this is due to the fact that the minimum of the 3rd harmonic corre- sponds to the maximum of the fundamental and vice versa. figure 1. pure sinewave modulation and equivalent with third harmonic added v phase neutral C v bus 2 ---------- - with v neutral v bus 2 ---------- - = = v phase phase C 3 v pk 3 2 ------ - v bus == sinewave modulation with 3rd harmonic injection equivalent to pure sinewave modulation -20 0 20 40 60 80 100 120 pwm duty cycle (full m odulation) pwm modulation third harmonic uncompensated fundamental sinewave modulation -20 0 20 40 60 80 100 120 pwm duty cycle (full m odulation) pwm modulation
4/8 st92141 ac motor control software library version 2.1 update as a consequence, this allows the fundamental signal amplitude to be increased up to the point were the modulating signal reaches the dc bus limits (i.e. 100% pwm modulation) it can be shown that by applying an appropriate coefficient to the third harmonic component, fundamental amplitude can be increased by 15%. figure 2. third harmonic injection with increased fundamental amplitude finally, when considering the phase to phase voltage on the motor, third harmonic compo- nents are mutually cancelled out (a 120-degree phase-shift on the fundamental corresponds to a 360-degree shift for the third harmonic) and we have on the motor windings: C sinusoidal voltage (and therefore currents) on the motor C phase to phase voltage 15% higher than with pure sinewave pwm modulation consequently, this allows you: C to decrease diameter of copper windings in the motor for a given power rating. C to increase the current in the motor for a given frequency, therefore providing more output power. C to increase maximum reachable speed for a given torque, as long as mechanics (ball-bear- ings mainly) are suited for very high speed operations. sinewave modulation with 3rd harmonic injection -20 0 20 40 60 80 100 120 pwm duty cycle (full m odulation) pwm mo d u l a t i o n third harmonic fundamental + 15%
5/8 st92141 ac motor control software library version 2.1 update 3.2 implementing third harmonic injection release 2.1 allows you to select either a sine or a sine with third harmonic as the reference pwm modulation. the choice is done by passing the appropriate parameter to the imc_setwaveform function of the imc software modules: C pure_sine, C sine_3harm. the corresponding look-up-tables are delivered with the library (in imcparam.h) and use 256 bytes each. they were calculated using the sine3.xls spreadsheet delivered in the utility direc- tory. the previous sinewave generation method (in release 2.0) uses the fact that the sum of the three sinewave modulated signals in a balanced three phase system is null. this allowed to reduce cpu load by computing only two out of the three pwm signals, the last one being just a complemented sum of the first two. this is no longer true for third harmonic injection and the three pwm signals have now to be calculated, thus increasing the cpu load slightly (from 15% to 19%).
6/8 st92141 ac motor control software library version 2.1 update 4 library migration and related issues the v2.1 library release has been migrated following the guidelines provided with the v4 to v6 migration notes document which can be found in the st9+ v6 toolchain user documen- tation folder. the sections here below detail the main differences compared to the v4 toolchain. it should be noted that neither code density nor execution speed have been modified due to library mi- gration. 4.1 c files aside from syntax modifications, not discussed here, the main change to the code is the re- moval of the save_page() and restore_page() functions in the interrupt service rou- tines (now automatically added by the compiler in the interrupt prologue/epilogue). furthermore, the zpc_it interrupt is now declared as a standard interrupt routine. 4.2 tr9 and assembly files not applicable: no assembly files in the library. 4.3 linker scriptfile a new scriptfile st92141.ld has been created for the library, using the v6 toolchain new fea- tures. it should be noticed that this scriptfile may be used for any projects running on st92141: each memory section (eprom/rom and ram) is addressed using a single dpr pointer, which is not changed during code execution (as rom is 16kb only). the only part which should be customized is the stack size (currently set to 256 bytes for de- velopment purposes); refer to section 4.4 for stack usage description. maximum stack depth measured during library validation was 88 bytes 1) . 1) measured on the hds2v2 emulator with library release adapted to v6.1 toolchain, in closed loop mode, corresponding to the deepest level of function calls interrupted by two nested in- terrupts.
7/8 st92141 ac motor control software library version 2.1 update 4.4 start-up files two modifications were made to the crtbegin.spp file given as examples in the toolchain package: C interrupt vector declaration. C mmu set-up: the loadings of dpr1 and dpr2 are commented (these sections are not used and corresponding labels _idpr1 and _idpr2 are not defined by the linker). using the crtbegin.spp file included in the toolchain package ensures consistency with tools deliveries, but implies two major changes in the mapping of the application: n there's now only one stack used during code execution: the system stack, mapped in ram (in v4 release, both stacks are used: the system stack in register file and the user stack in ram). n the working register group used by the c compiler is now group d (it was previously group 0 with the v4 toolchain). consequently, the register file mapping (done in reg-file.h header file) has changed: C the library's dedicated registers are now placed between r0 and r37 (included) C registers r38 to r207 are free for the user. one should keep in mind that the execution time may be significantly reduced by extensively using the register file (either for system stack or variables, the user stack must stay in ram). 4.5 makefile options passed to the c compiler and the linker have been updated according to the new set of options available with the v6 toolchain: n -nostartfiles: this specifies that start-up files (crtbegin.spp,...) have to be searched in the working directory and not in the tools directory n -mswitch-in-rodata, which saves spm/sdm sequences in functions when using jump tables. n -o3, corresponding to the maximum level of optimization; this option may be disabled to ease the debugging phase. n -wall, -w, -wstrict-prototypes, -wmissing-prototypes: these options have been enabled to give users an optimum level of warning messages. this level may be nevertheless increased, on a case by case basis, by modifying the c compiler options
8/8 st92141 ac motor control software library version 2.1 update the present note which is for guidance only aims at providing customers with information regarding their products in order for them to save time. as a result, stmicroelectronics shall not be held liable for any direct, indirect or consequential damages with respect to any claims arising from the content of such a note and/or the use made by customers of the information contained herein in connexion with their products. information furnished is believed to be accurate and reliable. however, stmicroelectronics assumes no responsibility for the co nsequences of use of such information nor for any infringement of patents or other rights of third parties which may result from its use. no license is granted by implication or otherwise under any patent or patent rights of stmicroelectronics. specifications mentioned in this publicati on are subject to change without notice. this publication supersedes and replaces all information previously supplied. stmicroelectronics prod ucts are not authorized for use as critical components in life support devices or systems without the express written approval of stmicroele ctronics. the st logo is a registered trademark of stmicroelectronics ? 2002 stmicroelectronics - all rights reserved. purchase of i 2 c components by stmicroelectronics conveys a license under the philips i 2 c patent. rights to use these components in an i 2 c system is granted provided that the system conforms to the i 2 c standard specification as defined by philips. stmicroelectronics group of companies australia - brazil - canada - china - finland - france - germany - hong kong - india - israel - italy - japan malaysia - malta - morocco - singapore - spain - sweden - switzerland - united kingdom - u.s.a. http://www.st.com


▲Up To Search▲   

 
Price & Availability of AN1367

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X